aa ab ab ab ab ab ab ab ab ab ab ab ab ab ab ac ad ad ad ad ad ad ad ad
ae ab ab ab ab ab ab ab ab ab ab ab ab af ac ad ad ad ad ad ad ad ad ad
ag ab ab ab ab ab ab ab ab ab ab ab ah ad ad ad ad ad ad ad ad ad ad ad
ai ae ab ab ab ab ab ab ab ab ab ab ac ad ad ad ad ad ad ad ad ad ad ad
ai ae ab ab af ab ab ab ab ab ab ac ad ad ad ad ad ad ad ad ad ad ad ad
ai ae ab ah ad aj ab ab ab ab ah ad ad ad ad ad ad ad ad ad ad ad ad ad
ai ae ab ac ad ad aj ab ab ab ac ad ad ad ad ad ad ad ad ad ad ad ad ad
ak ab ac ad ad ad ad al ab ac ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ae ac ad ad ad ad ad al ah ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ah ad ad ad ad ad ad al ah ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ah ad ad ad ad ad ad aj ac ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ac ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
am an ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ab ab am am am an ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ab ab ab ab ab ab an ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ab ab ab ab ab ab ah ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ab ab ab ao ab ab ab am am an ad ad ad ad ad ad ad ad ad ad ad ad ad ad
ab ab ap aq ar ab ab ab ab ab am am am am am am an ad ad ad ad ad ad ad
ab ab ab as ab ab ab ab ab ab ab ab ab ab ab ab ab an ad ad ad ad ad ad
ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab am am an ad ad ad

:def
battle_bg=generic.png
level_left=world0x1.txt
level_right=world2x1.txt
level_down=world1x2.txt
level_up=world1x0.txt
level_downleft=world0x2.txt
level_upleft=world0x0.txt
level_upright=world2x0.txt
level_downright=world2x2.txt
:aa
pix("hills/hills_e2.png")
walk(0)
if(stat("level"), "<", 2)
	mapstat("addmonster", "Orc")
	end()
endif
if(stat("level"), "<", 4)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	end()
endif
if(stat("level"), "<", 6)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	end()
endif
if(stat("level"), "<", 8)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Acid Slime")
	end()
endif
if(stat("level"), "<", 10)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Giant Spider")
	end()
endif
if(stat("level"), "<", 12)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Wizard")
	end()
endif
if(stat("level"), "<", 14)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Goblin")
	end()
endif
if(stat("level"), "<", 16)
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Skeleton")
	end()
endif
if(stat("level"), "<", 18)
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Troll")
	end()
endif
if(stat("level"), "<", 20)
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Death Knight")
	end()
endif
if(stat("level"), "<", 22)
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Bronze Golem")
	end()
endif
if(stat("level"), "<", 24)
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Dark Goblin")
	end()
endif
if(stat("level"), "<", 26)
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Iron Golem")
	end()
endif
if(stat("level"), "<", 28)
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Gold Dragon")
	end()
endif
if(stat("level"), "<", 28)
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Lost Soul")
	end()
endif
if(stat("level"), "<", 30)
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Ice Dragon")
	end()
endif
if(stat("level"), "<", 32)
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Platinum Golem")
	mapstat("addmonster", "Platinum Golem")
	end()
endif
if(stat("level"), "<", 34)
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Platinum Golem")
	mapstat("addmonster", "Black Dragon")
	mapstat("addmonster", "Black Dragon")
	end()
endif
#above level 34:
mapstat("addmonster", "Iron Golem")
mapstat("addmonster", "Gold Dragon")
mapstat("addmonster", "Lost Soul")
mapstat("addmonster", "Ice Dragon")
mapstat("addmonster", "Platinum Golem")
mapstat("addmonster", "Black Dragon")
mapstat("addmonster", "Black Dragon")
:ab
pix("grass.png")
walk(1)
:ac
pix("water/water_nw.png")
walk(1)
:ad
pix("water/water.png")
walk(0)
:ae
pix("hills/hills_e.png")
walk(0)
:af
pix("water/water_n.png")
walk(1)
:ag
pix("hills/hills_n2_w.png")
walk(0)
:ah
pix("water/water_w.png")
walk(1)
:ai
pix("hills/hills_n4.png")
walk(0)
:aj
pix("water/water_ne.png")
walk(1)
:ak
pix("hills/hills_e2.png")
walk(0)
:al
pix("water/water_e.png")
walk(1)
:am
pix("water/water_s.png")
walk(1)
:an
pix("water/water_sw.png")
walk(1)
:ao
pix("grass.png")
walk(1)
Action
set("temp1", 1)
:ap
pix("grass.png")
walk(1)
Action
set("temp1", 0)
:aq
pix("town.png")
walk(1)
Action
if(var("temp1"), "=", 0)
	move("town5.txt", 1, 19)
	hero("hero_e")
endif
if(var("temp1"), "=", 1)
	move("town5.txt", 27, 1)
	hero("hero_s")
endif
if(var("temp1"), "=", 2)
	move("town5.txt", 38, 16)
	hero("hero_w")
endif
if(var("temp1"), "=", 3)
	move("town5.txt", 27, 39)
	hero("hero_n")
endif
:ar
pix("grass.png")
walk(1)
Action
set("temp1", 2)
:as
pix("grass.png")
walk(1)
Action
set("temp1", 3)
